<?php $this->_extends('_layouts/htmltemplatepreview_layout'); ?>

<?php $this->_block('title'); ?>预览页面 - <?php echo $root; ?><?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>
	<div class="row-fluid" style="height: 50px;">
		<div class="span12" style="height: 50px; position: fixed; top: 0; left: 0; background-color: #333;">
			<a class="btn btn-large" 
				type="button" 
				href="<?php echo isset($download_pack)? $htmltemp_url . $root . '/' . $download_pack : 'javascript: void(0)'; ?>" 
				target="_blank"
			>
				<?php echo isset($download_pack)? '下载此模板Download' : '暂时没有提供下载'; ?>
			</a>
		</div>
	</div>
	
	<iframe src ="<?php echo $htmltemp_url . $root . '/' . $indexpage; ?>" frameborder="0" marginheight="0" marginwidth="0" frameborder="0" scrolling="no" id="ifm" name="ifm" onload="javascript:dyniframesize('ifm');" width="100%"></iframe> 
<?php $this->_endblock(); ?>